@import "base.less";

.shopCart {
  position: fixed;
  left: 0;
  right: 0;
  top: 11.7333vw;
  bottom: 13.3333vw;
  .searchResult {
    display: none;
    text-align: center;
    margin-top: 50vw;
    .iconfont {
      font-size: 9vw;
      color: #999;
    }
    p {
      margin: 5.3333vw;
      .fontSize;
    }
    a {
      display: block;
      width: 29.3333vw;
      margin: 0 auto;
      font-size: 4.2667vw;
      height: 8.5333vw;
      line-height: 8.5333vw;
      text-align: center;
      color: #fff;
      border-radius: 6.6667vw;
      background: linear-gradient(90deg, #f9211c, #ff6335);
    }
  }
  .shopCartCont {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    .cartDetail {
      flex: 1;
      padding: 0 2.6667vw;
      .cartTop {
        .flex;
        padding: 0.5333vw 4vw;
        height: 10.6667vw;
        span {
          .fontSize;
          i {
            color: red;
            margin: 0 1px;
          }
        }
        div {
          .iconfont {
            .fontSize;
          }
          b {
            .fontSize;
            font-weight: normal;
          }
        }
      }
      .cartMain {
        position: fixed;
        top: 22.4vw;
        left: 0;
        right: 0;
        bottom: 25.0667vw;
        overflow-y: scroll;
        .cartMain1 {
          margin-bottom: 5.3333vw;
          background: #fff;
          border-radius: 1.6vw;
          display: flex;
          align-items: center;
          padding: 4vw 2.1333vw;
          margin-bottom: 3.2vw;
          .cartMsg {
            .flex;
            img {
              width: 26.6667vw;
              height: 26.6667vw;
              margin-left: 1.3333vw;
              border-radius: 1.0667vw;
            }
            .cartDetail2 {
              margin-left: 3.2vw;
              display: flex;
              flex-direction: column;
              justify-content: space-between;
              height: 26.6667vw;
              h3 {
                font-weight: normal;
                .fontSize;
                .twoRowEllipsis;
              }
              .cartDCont {
                .flex;
                .count {
                  .flex;
                  button {
                    border: none;
                    display: block;
                    width: 8vw;
                    height: 6.9333vw;
                    text-align: center;
                    line-height: 6.9333vw;
                    background: rgb(242, 243, 245);
                    color: rgb(50, 50, 51);
                    font-size: 3.4667vw;
                    &.cur {
                      color: #c8c9cc;
                      background: #f7f8fa;
                    }
                  }
                  input {
                    margin: 0.5333vw;
                    width: 10.6667vw;
                    height: 6.9333vw;
                    text-align: center;
                    line-height: 6.9333vw;
                    background-color: #f2f3f5;
                  }
                }
              }
            }
          }
        }
      }
    }

    .cartFooter {
      background-color: #fff;
      height: 12.8vw;
      padding: 0 4vw;
      .flex;
      label {
        .fontSize;
      }
      .cartFr {
        .flex;
        .fontSize;
        div {
          .flex;
          b {
            font-weight: normal;
          }
          p {
            .commonMoney;
          }
        }
        a {
          .fontSize;
          margin-left: 4vw;
          width: 26.6667vw;
          display: block;
          height: 9.6vw;
          line-height: 9.6vw;
          text-align: center;
          color: #fff;
          border-radius: 6.6667vw;
          background-color: #ff9779;
        }
        .cancel {
          display: none;
          background-color: red;
        }
      }
    }
  }
}
